from celery_tasks.main import celery_app




# name：异步任务别名
from utils.smsutils import SmsUtil


@celery_app.task(name='send_sms_code')
def send_sms_code(mobile, code):
    """
    发送短信异步任务
    :param mobile: 手机号
    :param sms_code: 短信验证码
    """
    SmsUtil().send_message(mobile=mobile,code=code)